﻿using Minotaur.App.Domains.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minotaur.App.Core
{
    public class GlobalUserModel
    {/// <summary>
     /// 用户ID
     /// </summary>
        public virtual int UserId { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public virtual string? Account { get; set; }
        /// <summary>
        /// 语言
        /// </summary>
        public virtual string? Language { get; set; }

        /// <summary>
        /// 是否是中文环境
        /// </summary>
        public virtual bool IsChinese { get { return Language == "zh-cn" || string.IsNullOrEmpty(this.Language); } }
        /// <summary>
        /// 员工id
        /// </summary>
        public virtual int EmpId { get; set; }
        /// <summary>
        /// 员工cnnmae
        /// </summary>
        public virtual string? EmpName { get; set; }
        /// <summary>
        /// 组织名称
        /// </summary>
        public virtual string? OrgName { get; set; }
        /// <summary>
        /// 组织id
        /// </summary>
        public virtual long? OrgId { get; set; }
        /// <summary>
        /// 职位名称
        /// </summary>
        public virtual string? PositionName { get; set; }
        /// <summary>
        /// 职位id
        /// </summary>
        public virtual long? PositionId { get; set; }
        /// <summary>
        /// 是否是系统管理员
        /// </summary>
        public virtual bool IsAdmin { get; set; }
        /// <summary>
        /// 租户编码
        /// </summary>
        public virtual string? TenementCode { get; set; }
        /// <summary>
        /// 租户名称
        /// </summary>
        public virtual string? TenementName { get; set; }
        /// <summary>
        /// 租户电话
        /// </summary>
        public virtual string? TenementPhone { get; set; }

        /// <summary>
        /// 员工编码
        /// </summary>
        public virtual string? EmpCode { get; set; }

        /// <summary>
        /// 菜单信息
        /// </summary>
        public virtual List<MenuInfoDto> MenuInfos { get; set; } = new List<MenuInfoDto>();
    }
}
